﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CCWin.SkinControl
{
    //自定义事件参数类
    public class ChatTreeEventArgs
    {
        private ChatTreeSubItem mouseOnSubItem;
        public ChatTreeSubItem MouseOnSubItem {
            get { return mouseOnSubItem; }
        }

        private ChatTreeSubItem selectSubItem;
        public ChatTreeSubItem SelectSubItem {
            get { return selectSubItem; }
        }

        /// <summary>
        /// 悬浮事件
        /// </summary>
        /// <param name="mouseonsubitem">鼠标上所悬浮的好友</param>
        /// <param name="selectsubitem">选中的好友</param>
        public ChatTreeEventArgs(ChatTreeSubItem mouseonsubitem, ChatTreeSubItem selectsubitem) {
            this.mouseOnSubItem = mouseonsubitem;
            this.selectSubItem = selectsubitem;
        }
    }

    //自定义事件参数类
    public class ChatTreeItemEventArgs
    {
        private ChatTreeItem clickOnTreeItem;
        public ChatTreeItem CliceOnTreeItem
        {
            get { return clickOnTreeItem; }
        }

        /// <summary>
        /// 点击节点事件
        /// </summary>
        /// <param name="mouseonsubitem">鼠标上所悬浮的好友</param>
        /// <param name="selectsubitem">选中的好友</param>
        public ChatTreeItemEventArgs(ChatTreeItem clickOnTreeItem)
        {
            this.clickOnTreeItem = clickOnTreeItem;
        }
    }
}
